<?php

function getAjaxData($data){
  $rs=[];
  foreach ($data as $key => $v) {
    $rs[$v['name']]=$v['value'];
  }
  return $rs;
}
